<?xml version="1.0" encoding="ISO-8859-1" ?>
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core" template="/templates/edit.xhtml">
	<ui:param name="bean" value="#{contaBean}" />
	<ui:param name="tituloPagina" value="Nova Conta" />
	<ui:param name="renderedBtnSalvar" value="true" />
	<ui:param name="renderedBtnSalvarContinuar" value="false" />

	<ui:define name="contForm">

		<div class="form-group">
			<h:outputLabel id="outSaldo" value="Saldo R$"
				styleClass="col-sm-3 control-label" />
			<div class="col-sm-6">
				<h:inputText id="inptSaldo" styleClass="form-control money"
					value="#{bean.instance.saldo}" required="true">
					<f:convertNumber pattern="#,###,##0.00" />
					<f:ajax event="keyup" render="chkNegativo"/>
				</h:inputText>
				<div class="checkbox">
					<label> <h:selectBooleanCheckbox id="chkNegativo"
							value="#{bean.negativo}" disabled="#{bean.instance.saldo == 0.0}" /> Negativo
					</label>
				</div>

			</div>
		</div>

		<div class="form-group">
			<h:outputLabel id="outTitulo" value="T�tulo"
				styleClass="col-sm-3 control-label" />
			<div class="col-sm-6">
				<h:inputText id="inptTitulo" styleClass="form-control"
					value="#{bean.instance.titulo}" required="true" />
				<h:message for="inptTitulo" class="messageResources" />
			</div>
		</div>

	</ui:define>


</ui:composition>